import { tmsService } from '@/api/fetch'
// import qs from 'qs'

// 运单-单个运输任务-发车确认
export function getDepartureConfirmation(data) {
  return tmsService({
    url: '/shipTask/departureConfirmation',
    method: 'post',
    data
  })
}

// 获取运单运输任务列表
export function getWaybillList(data) {
  return tmsService({
    url: '/ship/shiplistbydriverId',
    method: 'post',
    data
  })
}

// 获取运单运输任务的详情
export function getWaybillListDetail(id) {
  return tmsService({
    url: '/ship/getDriverShipDeteailById/' + id,
    method: 'get'
  })
}

// 已上报位置的次数
export function getCurrrentUploadCount(code) {
  return tmsService({
    url: '/ship/currrentUploadCount/' + code,
    method: 'get'
  })
}

// 上报位置
export function getPositionUpload(data) {
  return tmsService({
    url: '/ship/positionUpload',
    method: 'post',
    data
  })
}

// 运抵确认
export function getShipToByLicense(data) {
  return tmsService({
    url: '/shipTask/shippingTo',
    method: 'post',
    data
  })
}


